package com.eras.shoes.view.popupdialog;

import android.content.Context;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.eras.shoes.R;
import com.eras.shoes.view.RxDialog;

public class RxDialogcalibrateSureCancel extends RxDialog {

    public LinearLayout dialogLlShoesType, dialogLlShoesSize;
    public TextView dialogTvShoesTypeValue,dialogTvShoesSizeValue;
    public TextView tvCalibCancel, tvCalibSure;
    public ImageView ivDialogShoesType, ivDialogShoesSize;

    public RxDialogcalibrateSureCancel(Context context) {
        super(context);
        initView();
    }
    public void setDialogLlShoesTypeListener(View.OnClickListener listener) {
        dialogLlShoesType.setOnClickListener(listener);
    }
    public void setDialogLlShoesSizeListener(View.OnClickListener listener) {
        dialogLlShoesSize.setOnClickListener(listener);
    }
    public void setTvCalibSureListener(View.OnClickListener listener) {
        tvCalibSure.setOnClickListener(listener);
    }
    public void setTvCalibCancelListener(View.OnClickListener listener) {
        tvCalibCancel.setOnClickListener(listener);
    }
    public void setCancel(String content) {
        tvCalibCancel.setText(content);
    }

    private void initView() {
        View dialogView = LayoutInflater.from(getContext()).inflate(R.layout.dialog_calibrate_sure_cancel, null);
        dialogTvShoesTypeValue = dialogView.findViewById(R.id.dialog_tv_shoes_type_value);
        dialogLlShoesType = dialogView.findViewById(R.id.dialog_ll_shoes_type);
        ivDialogShoesType = dialogView.findViewById(R.id.iv_dialog_shoes_type);
        dialogLlShoesSize = dialogView.findViewById(R.id.dialog_ll_shoes_size);
        dialogTvShoesSizeValue = dialogView.findViewById(R.id.dialog_tv_shoes_size_value);
        ivDialogShoesSize = dialogView.findViewById(R.id.iv_dialog_shoes_size);
        tvCalibCancel = dialogView.findViewById(R.id.tv_calib_cancel);
        tvCalibSure = dialogView.findViewById(R.id.tv_calib_sure);

        setContentView(dialogView);
    }
}
